from comment import log_set
from comment import send_email
import pytest

# if __name__ == '__main__':
#     log_set()
#     pytest.main(['test_a3mall_jf.py','-s','--html=report.html'])
#     send_email(['log.txt','report.html'])

if __name__ == '__main__':
    log_set()
    import os
    pytest.main(['test_a3mall_jf.py','-s','--alluredir','./reportdata','--clean-alluredir'])
    os.system('allure generate ./reportdata -o ./reporthtml --clean')
    send_email(['log.txt','./reporthtml/index.html'])
    # import os
    # pytest.main(['test_a3mall_jf.py','-s','--alluredir','./reportdata','--clean-alluredir'])
    # os.system('allure generate ./reportdata -o ./reporthtml --clean')
    # send_email(['log.txt','./reporthtml/index.html'])